/* PreferencesAction.java
 * Author: liuex
 * 2007-12-20 ����01:37:26
 *
 * Note: 
 */
package lex.proxyverfier.actions;

import java.awt.event.ActionEvent;

import org.lex.swing.ActionBuilder;
import org.lex.swing.prefs.PreferencesDialog;

import lex.proxyverfier.ProxyVerifier;
import lex.proxyverfier.prefs.VerificationCategory;

public class PreferencesAction extends ActionBuilder {
	public PreferencesAction() {
		super();
		this.setName("Preferences...");
	}

	public void actionPerformed(ActionEvent e) {
		ProxyVerifier app = ProxyVerifier.getApplication();
		PreferencesDialog pd = new PreferencesDialog(app.getRootWindow());
		pd.loadCategories(new VerificationCategory());
		pd.setLocationRelativeTo(app.getRootWindow());
		pd.setVisible(true);
	}
}
